home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
misc
/
pcduo102.zip
/
@PCDUO.ZIP
/
STARTSLV.BA_
/
STARTSLV.BA
Wrap
Text File
|
1994-09-20
|
5KB
|
134 lines
@ECHO OFF
SET PCDDRIVE=
REM Edit the above SET command if you wish to run the PC-Duo Slave from a
REM drive other than your current default, or if you want to load it from
REM a subdirectory. E.g. SET PCDDRIVE=D:\TOOLS will load the Slave from the
REM D:\TOOLS\PCDUO area.
ECHO -------------------------------------------------------------------------------
ECHO * Starting the PC-Duo DOS Slave
ECHO * PC-Duo v1.02
ECHO * Copyright 1994 PCI, Vector Networks Limited
REM Last update : DB 20-Sep-94
REM Make sure we have got either the IPX or the NetBIOS Slave program.
REM Which is determined by environment variable PCDNW. This is prepended to
REM "SLAVE". If it is undefined or empty, we load the NetBIOS Slave SLAVE.EXE.
REM If it is set to "IP", then we load the IPX Slave IPSLAVE.EXE.
if exist %PCDDRIVE%\PCDUO\%PCDNW%SLAVE.EXE goto IMAGEOK
ECHO *
ECHO * ERROR : Unable to find the PC-Duo Slave program in %PCDDRIVE%\PCDUO.
ECHO *
goto BADSLV
:IMAGEOK
REM We have found the image OK. Now we check for any setup batch file, and
REM execute it first if we find it
if not exist %PCDDRIVE%\PCDUO\STARTSL1.BAT goto SETUPDONE
REM Assume that we are not expected to delete this file automatically
SET PCDTIDY=
CALL %PCDDRIVE%\PCDUO\STARTSL1
REM Now see if we are supposed to wipe that file, now that it's been executed
if %PCDTIDY%. == . goto SETUPDONE
DEL %PCDDRIVE%\PCDUO\STARTSL1.BAT
SET PCDTIDY=
:SETUPDONE
REM Now prepare to load the Slave. If this is a standalone workstation with no
REM network connection, LOCALIPX and IP- or NBBRIDGE must be loaded already.
REM We default to using the auto-name option which derives the Slave's name
REM from the DOS Machine Name. This is normally appropriate for NetBIOS-based
REM networks, such as PATHWORKS and LAN Manager. If you are using PC-Duo on
REM a NetWare network, the DOS Machine Name is often not set, so you will
REM have to specify a name explicitly to allow the Slave to load. You can
REM do this by editing this batch file, or, preferably, by using the
REM 'environment variable' approach that is recommended for local configuration
REM of individual PCs.
REM
REM If you set the PCDCMD environment variable before calling this batch file,
REM it will be inserted at the front of the Slave command, in place of the
REM "*" for the automatic name determination. This allows you to have a wide
REM range of PCs all using the same STARTSLV (either physically the same, by
REM loading it from a server), but with local configuration changes
REM established where necessary. Editing this file allows you to change the
REM options that are applied to _all_ PCs. Setting PCDCMD allows you to define
REM extras for individual PCs, as required.
REM
REM For instance, setting PCDCMD to "fred *" before CALLing this batch file
REM will cause the Slave to be started with the default options, but
REM specifying a Slave name of "fred", and requiring the user on this PC to
REM acknowledge any attempts to connect. This can also be used to set
REM individual passwords, such as setting PCDCMD to "* 1234567" will auto-name
REM and require a matching (un-encrypted) password to allow connection. For
REM example, this can be done with following lines inserted in AUTOEXEC.BAT:-
REM
REM SET PCDCMD=* 1234567
REM CALL \PCDUO\STARTSLV
REM
REM If you want to change the default Slave options, you should edit the
REM following line which sets PCDOPTS. For instance, if you want to have all
REM PCs to run with File Transfer and Broadcast Messages disabled, you could
REM use SET PCDOPTS=/f /i
REM The default options are to use the defaults from Slave itself.
SET PCDOPTS=
if %PCDCMD%. == . goto DEFAULTCMD
REM We are using a non-default command, perhaps to specify auto-naming with
REM a password
%PCDDRIVE%\PCDUO\%PCDNW%SLAVE %PCDCMD% %PCDOPTS%
if not errorlevel 1 goto STARTOK
goto BADSLV
:DEFAULTCMD
REM We are going to start the Slave with the default command (auto-naming),
REM and with the default options (set with PCDOPTS above)
%PCDDRIVE%\PCDUO\%PCDNW%SLAVE * %PCDOPTS%
if not errorlevel 1 goto STARTOK
:BADSLV
ECHO * An error occurred starting the PC-Duo Slave.
ECHO -------------------------------------------------------------------------------
pause
goto END
:STARTOK
REM Now we check for any other procedure to be executed now that we've got the
REM Slave loaded happily. See the comments for STARTSL1 for more explanation.
if not exist %PCDDRIVE%\PCDUO\STARTSL2.BAT goto TWEAKDONE
SET PCDTIDY=
CALL %PCDDRIVE%\PCDUO\STARTSL2
if %PCDTIDY%. == . goto TWEAKDONE
DEL %PCDDRIVE%\PCDUO\STARTSL2.BAT
SET PCDTIDY=
:TWEAKDONE
ECHO * PC-Duo Slave loaded successfully.
ECHO -------------------------------------------------------------------------------
REM Delete environment variables before exiting.
:END
SET PCDDRIVE=
SET PCDCMD=
SET PCDNW=
SET PCDOPTS=